Release 10.1A: OpenEdge Data Management:
SQL Reference
DESCRIBE BIND VARIABLES
Writes information about any input variables in the prepared statement to an input SQLDA structure.
Syntax
statement_nameThe name of an input SQL statement to be processed using dynamic SQL steps. Typically, this is the same statement_name used in the
PREPAREstatement.input_sqlda_nameThe name of the SQLDA structure to which
DESCRIBEwill write information about input variables. Input variables represent values supplied toINSERTandUPDATEstatements at run time, and to predicates inDELETE,UPDATE, andSELECTstatements at run time.To utilize the
DESCRIBE BIND VARIABLESstatement in your application, issue statements in the following order:1.
PREPARE2.
DESCRIBE BIND VARIABLES3.
EXECUTEorOPEN CURSORThe
DESCRIBE BIND VARIABLESstatement writes the number of input variables to thesqld_nvarsfield of the SQLDA. If thesqld_sizefield of the SQLDA is not equal to or greater than this number,DESCRIBEwrites the value as a negative number tosqld_nvars. Design your application to checksqld_nvarsfor a negative number to determine if a particular SQLDA is large enough to process the current input statement.Input variables in dynamic SQL statements are identified by parameter markers or as substitution names.
Authorization
None
Related statements
PREPARE, DECLARE CURSOR, OPEN, FETCH, CLOSE
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |